import request from '@/utils/request';

// 查询登录日志列表
export function list(query) {
  return request({
    url: '/system/log/login/list',
    method: 'get',
    params: query,
  });
}

// 删除登录日志
export function delSysLogLogin(loginId) {
  return request({
    url: '/system/log/login/' + loginId,
    method: 'delete',
  });
}

// 解锁用户登录状态
export function unlock(userName) {
  return request({
    url: `/system/log/login/unlock/${userName}`,
    method: 'put',
  });
}

// 清空登录日志
export function cleanSysLogLogin() {
  return request({
    url: '/system/log/login/clean',
    method: 'delete',
  });
}
